import http from './request'
//获取数据
export const faultknowledgebaseList = (data, current, size) => {
    return http({
        url: '/hongyun-training/faultknowledgebase/list?faultPhenomenon=' + data.fault + '&equipmentTypeId=' + data.typeId +
            '&equipmentClassId=' + data.classId+'&current=' + current + '&size=' + size,
        method: 'GET'
    })
}
// 新增或修改
export const faultknowledgebaseSubmit = (data) => {
    return http({
        url: '/hongyun-training/faultknowledgebase/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const faultknowledgebaseRemove = (ids) => {
    return http({
        url: `/hongyun-training/faultknowledgebase/remove?ids=${ids}`,
        method: 'POST'
    })
}
// 查看
export const faultknowledgebaseDetail = (id) => {
    return http({
        url: `/hongyun-training/faultknowledgebase/detail?id=${id}`,
        method: 'GET'
    })
}